<?php
switch($action) {
case getUploadList:
	getUploadList();
	break;
}

function getUploadList() {
	global $config,$userInfo;
	$upload = new Upload();
	$page = intval(_g('page'))?intval(_g('page')):1;
	$num = 20;
	$pagination = new pagination();
	$pagination->set($sum,$num,'index.php');
	$sum = $upload->getUploadCount();
	$getUploadList = $upload->getUploadList($page,$num,$findkey='',$order='id',$fields='*');
	include template('manage/getUploadList');
}
?>